/*
 * mylikeCount : likeCount, dislikeCount
 * mylike : name, type, address, likeCount, dislikeCount, picList
 */

var MylocCtrl = dojo.declare(null, {
	//constructor/destructor
	constructor : mylocCtrl_constructor,
	destroy : mylocCtrl_destructor,
	
	//methods
	init : mylocCtrl_init,
	showList : mylocCtrl_showList
});

function mylocCtrl_constructor(){
	this._likeCount = 0;
	this._dislikeCount = 0;
	this._totalCount = 0;
	this._pageSize = 10;
	this._curList = "";
}

function mylocCtrl_destructor(){
}

function mylocCtrl_showList(type, start, end){
}

function mylocCtrl_init(parameter){
	var obj = this;
	
	obj.list = new TabList();
	obj.list.init({baseItem : $("#mylike_list_bound #list_main"), listName : "我的地点", defaultTab : 0, 
				 normalTabHtml : $("#mylike_list_bound #list_tab_normal").html(), 
				 currentTabHtml : $("#mylike_list_bound #list_tab_current").html(), 
				 tabs : [["全部", "/login/getUserSchoolMapLocLike", {"type" : "all"}, "/login/getUserSchoolMapLocLikeCount", {"type" : "all"}],
						 ["喜欢", "/login/getUserSchoolMapLocLike", {"type" : "like"}, "/login/getUserSchoolMapLocLikeCount", {"type" : "like"}],
						 ["讨厌", "/login/getUserSchoolMapLocLike", {"type" : "dislike"}, "/login/getUserSchoolMapLocLikeCount", {"type" : "dislike"}]],
				 itemHtml : $("#mylike_list_bound #list_item").html(),
				 itemHtmlMapping : [[0, "item_name", "text"], [2, "item_address", "text"], [5, "item_img", "img_list_find_small"]]});
}

if (dojo.getObject("mylocCtrl") == null) mylocCtrl = new MylocCtrl();